﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace T_vehicle.Infrastructure.Migrations
{
    public partial class 维修 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "RepairRecords",
                columns: table => new
                {
                    RepairRecordsId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    MaintenanceTitle = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    MaintenanceType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    LicenNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    MaintenanceMoney = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
                    Head = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Description = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    MaintenanceDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    Remark = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: true),
                    CreateBy = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateBy = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    AuditState = table.Column<int>(type: "int", nullable: true),
                    UpdateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDel = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RepairRecords", x => x.RepairRecordsId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "RepairRecords");
        }
    }
}
